package edu.bu.cs673.superkids123;

import edu.bu.cs673.superkids123.common.controller.AuthenticationController;

public abstract class AbstractController {
	private final AbstractFrame mainFrame;
	
	protected AuthenticationController authController;

	public AbstractController(AbstractFrame mainFrame) {
		this.mainFrame = mainFrame;

		// All views will need to know who the user is
		authController = getMainFrame().getController(AuthenticationController.class);
	}

	protected AbstractFrame getMainFrame() {
		return mainFrame;
	}
}
